<?php
	$frm_att = array('class'=>'admin-form');
	foreach($user_data as $data)
	{
		$id_value = set_value('id') == FALSE ? $data->id : set_value('id');
		$un_value = set_value('username') == FALSE ? $data->username : set_value('username');
		
		$id_att = array('name' => 'e_id', 'id' => 'e_id', 'value' => $id_value, 'disabled'=>'disabled');
		$un_att = array('name' => 'username', 'id' => 'username', 'value' => $un_value, 'maxlength' => '25');
	}
	$pw_att = array('name'=>'password', 'id'=>'password');
	$npw_att = array('name'=>'new_password', 'id'=>'new_password');
	$cpw_att = array('name'=>'confirm_password', 'id'=>'confirm_password');
?>
<div style="float: left;">
<div class="ui-corner-top side_menu" style="width: 700px;">View Profile</div>
<div style="border:1px  solid #286bcc;">
	<div>&nbsp;</div>
	<div>
	<?if(isset($system_message))echo $system_message;
	echo validation_errors('<div class="error">', '</div>');
	?>
		<?echo form_open('hrd/settings',$frm_att);?>
		<div class="input-block">
			<?
				echo form_label('ID','ID');
				echo form_input($id_att);
			?>
		</div>
		<div class="input-block">
			<?
				echo form_label('Username','Username');
				echo form_input($un_att);
			?>
		</div>
		<div class="input-block">
			<?
				echo form_label('Password','Password');
				echo form_password($pw_att);
			?>
		</div>
		<div class="input-block">
			<?
				echo form_label('New Password','New Password');
				echo form_password($npw_att);
			?>
		</div>
		<div class="input-block">
			<?
				echo form_label('Confirm Password','Confirm Password');
				echo form_password($cpw_att);
			?>
		</div>
		<div class="input-block">
			<?
				echo form_submit('change_settings','Change Settings');
				echo form_close();
			?>
		</div>
	</div>
	<div class="clearfloat"></div>
</div>
<div>&nbsp;</div>
</div>
<div class="clearfloat"></div>